package com.jindy.module.associatedProductView.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.associatedProductView.mapper.AssociatedProductViewMapper;
import com.jindy.module.associatedProductView.domain.AssociatedProductView;
import com.jindy.module.associatedProductView.service.IAssociatedProductViewService;

/**
 * VIEWService业务层处理
 * 
 * @author jindy
 * @date 2023-06-06
 */
@Service
public class AssociatedProductViewServiceImpl implements IAssociatedProductViewService 
{
    @Autowired
    private AssociatedProductViewMapper associatedProductViewMapper;

    /**
     * 查询VIEW
     * 
     * @param id VIEW主键
     * @return VIEW
     */
    @Override
    public AssociatedProductView selectAssociatedProductViewById(Long id)
    {
        return associatedProductViewMapper.selectAssociatedProductViewById(id);
    }

    /**
     * 查询VIEW列表
     * 
     * @param associatedProductView VIEW
     * @return VIEW
     */
    @Override
    public List<AssociatedProductView> selectAssociatedProductViewList(AssociatedProductView associatedProductView)
    {
        return associatedProductViewMapper.selectAssociatedProductViewList(associatedProductView);
    }

    /**
     * 新增VIEW
     * 
     * @param associatedProductView VIEW
     * @return 结果
     */
    @Override
    public int insertAssociatedProductView(AssociatedProductView associatedProductView)
    {
        return associatedProductViewMapper.insertAssociatedProductView(associatedProductView);
    }

    /**
     * 修改VIEW
     * 
     * @param associatedProductView VIEW
     * @return 结果
     */
    @Override
    public int updateAssociatedProductView(AssociatedProductView associatedProductView)
    {
        return associatedProductViewMapper.updateAssociatedProductView(associatedProductView);
    }

    /**
     * 批量删除VIEW
     * 
     * @param ids 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteAssociatedProductViewByIds(Long[] ids)
    {
        return associatedProductViewMapper.deleteAssociatedProductViewByIds(ids);
    }

    /**
     * 删除VIEW信息
     * 
     * @param id VIEW主键
     * @return 结果
     */
    @Override
    public int deleteAssociatedProductViewById(Long id)
    {
        return associatedProductViewMapper.deleteAssociatedProductViewById(id);
    }
}
